import { PartnersBiddingPreQuote } from '@/lib/bidding/vendor/partners-bidding-pre-quote' import { Suspense } from 'react' import { Skeleton } from '@/components/ui/skeleton' import { getServerSession } from 'next-auth' import { authOptions } from "@/app/api/auth/[...nextauth]/route" interface PartnersPreQuotePageProps { params: Promise<{ id: string }> } export default async function PartnersPreQuotePage(props: PartnersPreQuotePageProps) { const resolvedParams = await props.params const biddingId = parseInt(resolvedParams.id) if (isNaN(biddingId)) { return (

유효하지 않은 입찰 ID입니다.

) } // 세션에서 companyId 가져오기 const session = await getServerSession(authOptions) const companyId = session?.user?.companyId if (!companyId) { return (

회사 정보가 없습니다. 다시 로그인 해주세요.

) } return (
}>
) } function PreQuoteSkeleton() { return (
{/* 헤더 스켈레톤 */}
{/* 입찰 공고 스켈레톤 */}
{Array.from({ length: 6 }).map((_, i) => ( ))}
{/* 현재 설정된 조건 스켈레톤 */}
{Array.from({ length: 8 }).map((_, i) => ( ))}
{/* 사전견적 폼 스켈레톤 */}
{Array.from({ length: 10 }).map((_, i) => ( ))}
) }